"""
@Project:efficient
@File:qiniuyun_token.py
@Author:韩晓雷
@Date:20:32
"""


from django.conf import settings
from qiniu import Auth, put_file, etag


# 七牛云上传
def qiniu_token():
    Access_key = settings.QINIU_ACCESS_KEY
    Secret_key = settings.QINIU_SECRET_KEY
    bucket_name = settings.QINIU_BUCKET_BAME
    q = Auth(Access_key, Secret_key)
    token = q.upload_token(bucket_name)
    return token






